﻿using UnityEngine;
using System.Collections;

public class GameGUI : MonoBehaviour {

	private PlayerController player;

	void OnGUI() {
		if (player == null) {
			player = GameObject.FindGameObjectWithTag("Player").GetComponent<PlayerController>();
		}
		GUI.Box(new Rect(0,0,80,20), player.health + "/100");
	}
}
